package com.winter.service.impl;

import com.winter.mapper.UsersMapper;
import com.winter.model.Users;
import com.winter.model.UsersExample;
import com.winter.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Users> findAll() {
        UsersExample example=new UsersExample();
        return usersMapper.selectByExample(example);
    }
}
